<include file="Public:header" />
<div class="headbar">
	<div class="position"><span>系统</span><span>></span><span>权限管理</span><span>></span><span>角色列表</span></div>
	<div class="operating">
		<a href="{:U('System/role_edit')}"><button class="operating_btn" type="button"><span class="addition">添加角色</span></button></a>
		<a href="javascript:void(0)" onclick="selectAll('id[]');"><button class="operating_btn" type="button"><span class="sel_all">全选</span></button></a>
		<a href="javascript:void(0)" onclick="delModel({msg:'是否把信息放到回收站内？'});"><button class="operating_btn" type="button"><span class="delete">批量删除</span></button></a>
		<a href="{:U('System/role_recycle')}" ><button class="operating_btn" type="button"><span class="recycle">回收站</span></button></a>
	</div>
</div>

<div class="content">
	<form name='role_list' method='post' action="{:U('System/role_update')}">
		<table class="list_table">
			<colgroup>
				<col width="40px" />
				<col />
			</colgroup>

			<thead>
				<tr>
					<th>选择</th>
					<th>名字</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody>
                                <foreach name='role' item='item'>
				<tr>
					<td><input type='checkbox' name='id[]' value="{$item['id']}" /></td>
					<td>{$item['name']}</td>
					<td>
                                            <a href="{:U('System/role_edit' , array('id' => $item['id']))}"><img class="operator" src="__PUBLIC__/Operation/images/admin/icon_edit.gif" alt="编辑" title="编辑" /></a>
						<a href='javascript:void(0)' onclick="delModel({link:'{url:/system/role_update/recycle/del/id/$item[id]}',msg:'是否把信息放到回收站内？'});"><img class="operator" src="__PUBLIC__/Operation/images/admin/icon_del.gif" alt="删除" title="删除" /></a>
					</td>
				</tr>
                                </foreach>
			</tbody>
		</table>
	</form>
</div>
<include file="Public:footer" />